import Ax from './api';

export default {
  thirdPartyPlatformAdd: (param = {}) => Ax.put(`/thirdPartyPlatform/add`, {...param}),
  thirdPartyPlatformEdit: (param = {}) => Ax.put(`/thirdPartyPlatform/edit`, param),
  thirdPartyPlatformDelete: (query = {}) => Ax.delete(`/thirdPartyPlatform/delete?_id=${query._id}`),
  thirdPartyPlatformList: (param = {}) => Ax.post(`/thirdPartyPlatform/list`, param),
  thirdPartyPlatformExport: (param = {}) => Ax.post(`/thirdPartyPlatform/export`, param),
  platformInterfaceAdd: (param = {}) => Ax.put(`/platformInterface/add`, {...param}),
  platformInterfaceEdit: (param = {}) => Ax.put(`/platformInterface/edit`, param),
  platformInterfaceDelete: (query = {}) => Ax.delete(`/platformInterface/delete?_id=${query._id}`),
  platformInterfaceList: (param = {}) => Ax.post(`/platformInterface/list`, param),
  platformInterfaceDetail: (query = {}) => Ax.get(`/platformInterface/detail?_id=${query._id}`),
};
